<template>
  <div class="h5-wrapper">
    <div class="content">
      <!-- 内容部分 -->
      <router-view></router-view>
      
    </div>
    <!-- <div class="tabbar">
      <router-link to="/home/Drinking">首页</router-link>
      <router-link to="/home/Ganfan">找房</router-link>
      <router-link to="/home/Eat">资讯</router-link>
      <router-link to="/home/user">我的</router-link>
    </div> -->
    <van-tabbar route>
  <van-tabbar-item  to="/home/Drinking" icon="home-o">首页</van-tabbar-item>
  <van-tabbar-item  to="/home/Ganfan"  icon="search">找房</van-tabbar-item>
  <van-tabbar-item  to="/home/Eat"  icon="friends-o">资讯</van-tabbar-item>
  <van-tabbar-item  to="/home/user"  icon="setting-o">我的</van-tabbar-item>
</van-tabbar>
  </div>
</template>

<script>

export default {
  name: 'LayoutPage',
   data() {
    return {
      active: 'home',
    };
  },
}
</script>


<style lang="less" scoped>
 
body{
  margin: 0;
  padding: 0;
}
.h5-wrapper {
  .content {
    margin-bottom: 51px;
  }
  .tabbar {
    position: fixed;
    left: 0;
    bottom:0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: flex;
    background: #974545;
    border-top: 1px solid #e4e4e4;
    a {
      color: #7ea60f;
      flex: 1;
      text-decoration: none;
      font-size: 20px;
      -webkit-tap-highlight-color: transparent;
      &.router-link-active {
        color: #fa0;
      }
    }
  }
}
</style>